package com.dl.debugtools

import com.dl.base.appContext
import java.io.File

object FileUtil {
    private const val DOWNLOAD_DIR = "DebugTools-Download"
    private const val FACE_FEATURE_FILE = "install.apk"

    fun getDownloadInstallPath(): String {
        val dir = File(getBaseDir(), DOWNLOAD_DIR)
        if (!dir.exists()) {
            dir.mkdir()
        }
        return dir.absolutePath + File.separator + FACE_FEATURE_FILE
    }

    private fun getBaseDir() = appContext.getExternalFilesDir(null)
}